package com.example.patient.jpa;

import com.example.common.entity.OnlineConsultation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author wxy
 * @Date 2021/1/20 9:54
 * @Version 1.0
 */
public interface OnlineConsultationRepository extends JpaRepository<OnlineConsultation, Long> {

    Long countByDcIdAndPidAndOcStatusIn(Long dcId, Long pid, List<Integer> list);

    OnlineConsultation findFirstByOrderNo(String orderNo);
}
